﻿using RepositoryEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepositoryBll
{
    /// <summary>
    /// 用户信息业务访问层接口
    /// </summary>
    public interface IUserInfoBll
    {
        bool AddUserInfo(UserInfo userInfo);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userInfoId">用户id</param>
        /// <returns></returns>
        bool DeleteUserInfo(string userInfoId);

        /// <summary>
        /// 软删除用户
        /// </summary>
        /// <param name="userInfoId"></param>
        /// <returns></returns>
        bool SoftDeleteUserInfo(string userInfoId);

        bool UpdateUserInfo(UserInfo userInfo);

        bool UpdateUserInfo(string userInfoId, string userName, int sex);

        /// <summary>
        /// 通过id获取用户
        /// </summary>
        /// <param name="userInfoId"></param>
        /// <returns></returns>
        UserInfo GetUserInfo(string userInfoId);

        List<UserInfo> GetUserInfoList();
    }
}
